package system

import "MoSkeleton/framework/core/dto/request"

type SysDeptPageReq struct {
	request.PageInfo
	request.BaseRequest
	request.IDRequestOptional
	ParentId uint64 `json:"parentId,string" form:"parentId,string"`
	DeptName string `json:"deptName" form:"deptName"`
	Status   string `json:"status" form:"status"`
}

type DeptUniqueReq struct {
	ParentId uint64 `json:"parentId,string" form:"parentId,string"`
	DeptName string `json:"deptName" form:"deptName"`
}

type SysDeptAddReq struct {
	DeptUniqueReq
	Ancestors string `json:"ancestors" form:"ancestors"`
	OrderNum  int32  `json:"orderNum" form:"orderNum"`
	Leader    string `json:"leader" form:"leader"`
	Phone     string `json:"phone" form:"phone"`
	Email     string `json:"email" form:"email"`
	Status    string `json:"status" form:"status"`
	DelFlag   string `json:"delFlag" form:"DelFlag"`
	CreatedBy string
	UpdatedBy string
}

type SysDeptUpdateReq struct {
	request.IDRequest
	DeptUniqueReq
	Ancestors string `json:"ancestors" form:"ancestors"`
	OrderNum  int32  `json:"orderNum" form:"orderNum"`
	Leader    string `json:"leader" form:"leader"`
	Phone     string `json:"phone" form:"phone"`
	Email     string `json:"email" form:"email"`
	Status    string `json:"status" form:"status"`
	DelFlag   string `json:"delFlag" form:"DelFlag"`
	UpdatedBy string
}
